//package org.ddd.pattern.event.spring.rowmapper;
//
//import org.ddd.pattern.event.domain.data.DomainEventTracker;
//import org.springframework.dao.DataAccessException;
//import org.springframework.jdbc.core.ResultSetExtractor;
//
//import java.sql.ResultSet;
//import java.sql.SQLException;
//
//public class PublishedEventTrackerResultSetExtractor implements ResultSetExtractor<DomainEventTracker> {
//
//    public static final PublishedEventTrackerResultSetExtractor INSTANCE = new PublishedEventTrackerResultSetExtractor();
//
//
//    @Override
//    public DomainEventTracker extractData(ResultSet resultSet) throws SQLException, DataAccessException {
//        DomainEventTracker eventTracker = new DomainEventTracker();
//        eventTracker.setDomainType(resultSet.getString(1));
//        eventTracker.setLatestStoredId(resultSet.getLong(2));
//        return eventTracker;
//    }
//
//}
